package net.mingsoft.basic.entity;

import net.mingsoft.base.entity.*;
import com.baomidou.mybatisplus.annotation.*;
import java.util.*;
import org.springframework.format.annotation.*;
import com.fasterxml.jackson.annotation.*;
import cn.hutool.core.util.*;

@TableName("app")
public class AppEntity extends BaseEntity
{
    private String appState;
    private String appName;
    private String appDescription;
    private String appLogo;
    private String appStyle;
    private String appKeyword;
    private String appCopyright;
    private String appDir;
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private String appUrl;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appDatetime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date appPayDate;
    private String appPay;
    
    public Date getAppPayDate() {
        return this.appPayDate;
    }
    
    public void setAppPayDate(final Date appPayDate) {
        this.appPayDate = appPayDate;
    }
    
    public String getAppPay() {
        return this.appPay;
    }
    
    public void setAppPay(final String appPay) {
        this.appPay = appPay;
    }
    
    public Date getAppDatetime() {
        return this.appDatetime;
    }
    
    public void setAppDatetime(final Date appDatetime) {
        this.appDatetime = appDatetime;
    }
    
    public String getAppCopyright() {
        return this.appCopyright;
    }
    
    public String getAppDescription() {
        return this.appDescription;
    }
    
    public String getAppKeyword() {
        return this.appKeyword;
    }
    
    public String getAppName() {
        return this.appName;
    }
    
    public String getAppStyle() {
        return this.appStyle;
    }
    
    public String getAppUrl() {
        if (ObjectUtil.isNotNull((Object)this.appUrl)) {
            return this.appUrl.replaceAll(" ", "");
        }
        return this.appUrl;
    }
    
    public String getAppHostUrl() {
        if (ObjectUtil.isNotNull((Object)this.appUrl) && this.appUrl.indexOf("\n") > 0) {
            return this.appUrl.split("\n")[0].trim();
        }
        return this.appUrl;
    }
    
    public String getAppLogo() {
        return this.appLogo;
    }
    
    public void setAppCopyright(final String appCopyright) {
        this.appCopyright = appCopyright;
    }
    
    public void setAppDescription(final String appDescription) {
        this.appDescription = appDescription;
    }
    
    public String getAppId() {
        return (this.id == null) ? "0" : this.id;
    }
    
    public void setAppId(final String id) {
        this.id = id;
    }
    
    public void setAppKeyword(final String appKeyword) {
        this.appKeyword = appKeyword;
    }
    
    public void setAppName(final String appName) {
        this.appName = appName;
    }
    
    public void setAppStyle(final String appStyle) {
        this.appStyle = appStyle;
    }
    
    public void setAppUrl(final String appUrl) {
        this.appUrl = appUrl;
    }
    
    public void setAppLogo(final String appLogo) {
        this.appLogo = appLogo;
    }
    
    public String getAppDir() {
        return this.appDir;
    }
    
    public void setAppDir(final String appDir) {
        this.appDir = appDir;
    }
    
    public String getAppState() {
        return this.appState;
    }
    
    public void setAppState(final String appState) {
        this.appState = appState;
    }
}
